;(function(window) {

  var svgSprite = '<svg>' +
    '' +
    '<symbol id="icon-jia" viewBox="0 0 1000 1000">' +
    '' +
    '<path d="M821.129 454.944H543.324V177.17100000000005c0-23.943-19.387-43.359-43.346-43.359-23.968 0-43.352 19.416-43.352 43.359v277.773H178.871c-23.969 0-43.352 19.416-43.352 43.359 0 23.93 19.383 43.346 43.352 43.346h277.756v277.787c0 23.926 19.384 43.344 43.352 43.344 23.959 0 43.346-19.418 43.346-43.344V541.649h277.805c23.969 0 43.352-19.416 43.352-43.346C864.48 474.36 845.098 454.944 821.129 454.944z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-jiantouxia" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M964.442162 315.495534 903.606163 255.993349 511.999488 647.667889 120.392814 255.993349 59.557838 315.495534 511.999488 768.004605Z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-52" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M301.312 909.376 842.944 364.608 658.944 180.736 117.44 725.504 101.696 794.496 217.344 924.288Z"  ></path>' +
    '' +
    '<path d="M69.824 953.856 167.04 934.4 90.816 848.896Z"  ></path>' +
    '' +
    '<path d="M819.776 84.928c-19.776-19.776-51.84-19.776-71.488 0l-53.44 53.376 191.104 191.104 53.376-53.376c19.776-19.776 19.776-51.84 0-71.552L819.776 84.928z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-msnui-cart" viewBox="0 0 1031 1024">' +
    '' +
    '<path d="M366.498 747.328q17.47 0 33.101 6.437t27.125 17.929 18.389 27.125 6.896 33.101-6.896 33.101-18.389 27.125-27.125 18.389-33.101 6.896q-18.389 0-34.021-6.896t-27.125-18.389-18.389-27.125-6.896-33.101 6.896-33.101 18.389-27.125 27.125-17.929 34.021-6.437zM748.999 749.166q17.47 0 33.561 6.437t27.584 17.929 18.389 27.125 6.896 33.101-6.896 33.101-18.389 27.125-27.584 18.389-33.561 6.896-33.101-6.896-27.123-18.389-18.389-27.125-6.896-33.101 6.896-33.101 18.389-27.125 27.123-17.929 33.101-6.437zM903.47 226.906q25.745 0 39.997 6.896t20.228 17.010 5.517 21.607-3.218 19.768-11.954 34.021-19.768 56.548-21.148 61.144-17.010 47.813q-11.954 36.779-29.883 51.030t-44.595 14.252h-482.723l12.873 82.752h464.333q44.136 0 44.136 37.699 0 18.389-8.735 32.182t-34.48 12.873h-481.803q-18.389 0-30.802-8.276t-20.688-21.607-13.333-28.963-7.816-29.423q-0.92-5.517-5.057-26.665t-10.115-52.869-13.333-70.8-14.713-78.615q-17.47-92.867-39.538-206.881h-68.961q-13.793 0-22.987-6.896t-15.172-16.55-8.276-20.688-2.298-20.228q0-18.389 12.413-30.343t33.561-11.034h92.867q18.389 0 29.423 5.517t17.47 13.793 9.195 17.010 4.598 15.172q1.839 7.356 3.678 20.688t3.678 27.125q2.759 16.55 5.517 34.94h628.918zM869.449 308.739l-575.589-1.839 32.182 166.424 480.884 0.92z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-wenhao" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M502.757 960.219c-60.5 0-119.201-11.854-174.474-35.231-53.377-22.576-101.31-54.894-142.466-96.05-41.156-41.153-73.472-89.088-96.049-142.465C66.39 631.201 54.537 572.5 54.537 512S66.39 392.799 89.768 337.526c22.576-53.376 54.893-101.309 96.049-142.465 41.156-41.157 89.089-73.473 142.466-96.049 55.271-23.378 113.973-35.231 174.474-35.231 60.499 0 119.2 11.853 174.474 35.231 53.377 22.577 101.31 54.893 142.466 96.05 41.157 41.155 73.472 89.088 96.048 142.465 23.379 55.27 35.231 113.972 35.231 174.474s-11.854 119.204-35.232 174.473c-22.577 53.38-54.892 101.312-96.047 142.466-41.156 41.155-89.09 73.473-142.465 96.049C621.956 948.365 563.256 960.219 502.757 960.219zM502.757 94.48c-56.369 0-111.047 11.038-162.515 32.806-49.717 21.029-94.369 51.136-132.716 89.482-38.348 38.348-68.453 83-89.482 132.717C96.275 400.952 85.237 455.63 85.237 512c0 56.368 11.038 111.047 32.807 162.512 21.03 49.722 51.135 94.373 89.482 132.717 38.347 38.351 82.999 68.455 132.716 89.482 51.469 21.77 106.146 32.809 162.515 32.809s111.046-11.036 162.516-32.809c49.717-21.029 94.368-51.135 132.715-89.482 38.348-38.344 68.453-82.996 89.48-132.715 21.771-51.465 32.809-106.145 32.809-162.514 0-56.371-11.037-111.049-32.809-162.515-21.028-49.718-51.135-94.371-89.48-132.718-38.348-38.347-82.999-68.453-132.717-89.482C613.804 105.518 559.125 94.48 502.757 94.48zM446.479 719.294l0 74.638 89.476 0 0-74.638L446.479 719.294zM677.814 461.148c13.094-19.66 19.645-41.14 19.645-64.442 0-40.29-18.628-74.642-55.87-103.039-37.253-28.397-87.159-42.599-149.72-42.599-59.074 0-106.578 13.231-142.51 39.685-35.942 26.461-57.545 64.57-64.816 114.325l80.75 8.01c6.979-37.134 21.674-64.443 44.081-81.917 22.407-17.479 50.34-26.216 83.806-26.216 34.628 0 63.873 9.647 87.736 28.943 23.858 19.299 35.795 41.69 35.795 67.178 0 14.08-4.082 27.068-12.226 38.956-8.149 11.897-25.823 27.854-53.032 47.879-27.21 20.024-46.045 35.258-56.526 45.695-14.259 14.323-24.589 28.523-30.986 42.596-8.733 18.695-13.093 40.905-13.093 66.63 0 4.371 0.14 10.923 0.436 19.663l75.509 0c0.578-26.216 2.761-45.153 6.55-56.798 3.775-11.651 9.602-21.969 17.456-30.951 7.859-8.975 24.59-22.938 50.198-41.868C639.109 504.722 664.72 480.814 677.814 461.148L677.814 461.148z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-jishi" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M512 64.638159c-247.079328 0-447.364911 200.283536-447.364911 447.364911 0 247.075235 200.285582 447.358771 447.364911 447.358771 247.061932 0 447.364911-200.277396 447.364911-447.358771S759.061932 64.638159 512 64.638159L512 64.638159 512 64.638159zM512 866.808912c-195.966207 0-354.805842-158.839635-354.805842-354.805842 0-195.946764 158.839635-354.806865 354.805842-354.806865 195.946764 0 354.806865 158.860101 354.806865 354.806865C866.806865 707.963137 707.946764 866.808912 512 866.808912L512 866.808912 512 866.808912zM681.687704 496.572636 558.272883 496.572636 558.272883 280.604886c0-17.037025-13.812587-30.855752-30.847565-30.855752l-30.849612 0c-17.042141 0-30.861892 13.818727-30.861892 30.855752l0 277.671067c0 17.042141 13.820774 30.854728 30.861892 30.854728l185.111998 0c17.037025 0 30.855752-13.812587 30.855752-30.854728l0-30.849612C712.543456 510.385223 698.724729 496.572636 681.687704 496.572636L681.687704 496.572636 681.687704 496.572636zM681.687704 496.572636"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-shoucang1" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M935.23535 325.31211c-0.735757-15.471366-6.258541-38.702464-11.975752-56.434314-15.652492-48.543599-39.016619-81.516572-55.861262-100.629885-21.007453-23.837918-45.874817-42.575678-73.91136-55.694463-32.275077-15.101953-68.817342-22.759353-108.612697-22.759353l-0.170892 0c-56.713676 0.030699-109.705588 20.546965-149.21544 57.766658-8.758478 8.249895-16.671705 17.155728-23.693632 26.612101C473.027383 122.349559 411.342486 88.769766 342.003258 88.769766c-52.806693 0-99.281167 12.526291-138.130987 37.230949-31.381731 19.955494-57.338916 47.537689-77.149101 81.978083-32.629141 56.730049-37.302581 113.579825-37.485753 115.972315l-0.118704 1.558495 0 1.562589c0 22.658046 0 48.338938 7.645121 77.420277 7.67582 29.199019 19.301602 64.87045 48.613184 96.748485l366.375342 395.10364 370.251625-396.666228c34.788318-44.39 43.892673-77.335343 50.850132-119.356388C937.450808 352.566848 936.072415 332.73722 935.23535 325.31211zM846.760297 477.779617 511.832178 833.141114 178.402179 477.498208c-56.964386-76.185146-48.351218-102.897531-48.351218-150.426011 0 0 15.093766-197.370183 211.952296-197.370183 52.571333-1.387603 147.228179 41.571814 171.360809 134.521786-0.481977-1.858324 35.729759-138.828882 171.360809-133.49848 186.229448 7.318686 210.593346 190.898795 209.689766 198.027146C894.414643 328.752466 903.754359 398.765029 846.760297 477.779617z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-guanbi" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M511.997954 1022.977242c-69.038236 0-136.025841-13.528025-199.10344-40.206677-60.911398-25.763283-115.608515-62.639859-162.57358-109.604924-46.964042-46.965064-83.840617-101.662182-109.603901-162.57358C14.036336 647.514461 0.509334 580.526856 0.509334 511.488621s13.527002-136.025841 40.206677-199.10344c25.763283-60.911398 62.639859-115.608515 109.604924-162.57358 46.964042-46.965064 101.662182-83.84164 162.57358-109.604924 63.0776-26.679675 130.065205-40.206677 199.10344-40.206677S648.023795 13.527002 711.101395 40.206677c60.911398 25.763283 115.608515 62.639859 162.57358 109.603901 46.965064 46.965064 83.84164 101.662182 109.604924 162.57358 26.679675 63.0776 40.206677 130.065205 40.206677 199.10344s-13.528025 136.025841-40.206677 199.10344c-25.763283 60.911398-62.639859 115.608515-109.604924 162.57358-46.965064 46.965064-101.662182 83.84164-162.57358 109.604924C648.023795 1009.449217 581.03619 1022.977242 511.997954 1022.977242zM511.997954 58.370866c-61.183451 0-120.520824 11.976501-176.364454 35.596082C281.679929 116.787756 233.218569 149.46284 191.595371 191.086038c-41.623197 41.623197-74.298282 90.084557-97.118067 144.03813-23.619582 55.84363-35.596082 115.181002-35.596082 176.364454s11.976501 120.520824 35.596082 176.364454c22.820808 53.95255 55.495892 102.414932 97.119089 144.03813 41.623197 41.622175 90.084557 74.298282 144.037107 97.118067 55.84363 23.619582 115.181002 35.597105 176.364454 35.597105 61.183451 0 120.520824-11.976501 176.364454-35.597105 53.95255-22.819785 102.414932-55.495892 144.03813-97.118067 41.622175-41.623197 74.298282-90.08558 97.118067-144.03813 23.619582-55.84363 35.597105-115.181002 35.597105-176.364454s-11.976501-120.520824-35.597105-176.364454c-22.819785-53.953572-55.495892-102.414932-97.118067-144.037107-41.623197-41.623197-90.08558-74.298282-144.03813-97.119089C632.518778 70.347366 573.181406 58.370866 511.997954 58.370866z"  ></path>' +
    '' +
    '<path d="M556.654653 511.488621l201.181685-201.181685c12.311965-12.311965 12.311965-32.344733 0-44.656699-12.311965-12.311965-32.346779-12.310943-44.656699 0L511.997954 466.831922 310.816269 265.649214c-12.311965-12.310943-32.344733-12.310943-44.656699 0-12.311965 12.311965-12.311965 32.344733 0 44.657722L467.341256 511.488621 266.15957 712.671329c-5.942226 5.942226-9.215053 13.870649-9.215053 22.327838 0 8.456166 3.272827 16.385612 9.215053 22.327838 6.155983 6.155983 14.24191 9.233463 22.328861 9.233463s16.171855-3.078503 22.328861-9.233463l201.181685-201.181685 201.181685 201.181685c6.155983 6.155983 14.24191 9.233463 22.327838 9.233463 8.08695 0 16.172878-3.078503 22.328861-9.233463 12.311965-12.311965 12.311965-32.344733 0-44.655676L556.654653 511.488621z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-iconfontyou" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M307.018 49.445c11.517 0 23.032 4.394 31.819 13.18L756.404 480.18c8.439 8.438 13.181 19.885 13.181 31.82s-4.741 23.38-13.181 31.82L338.838 961.376c-17.574 17.573-46.065 17.573-63.64-0.001-17.573-17.573-17.573-46.065 0.001-63.64L660.944 512 275.198 126.265c-17.574-17.573-17.574-46.066-0.001-63.64C283.985 53.839 295.501 49.445 307.018 49.445z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-xuanzhong" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M512 65.290005c-246.710938 0-446.708971 199.999057-446.708971 446.708971s199.999057 446.708971 446.708971 446.708971S958.708971 758.710938 958.708971 512 758.710938 65.290005 512 65.290005zM512 883.429451c-205.13503 0-371.429451-166.29442-371.429451-371.429451s166.29442-371.429451 371.429451-371.429451 371.429451 166.29442 371.429451 371.429451S717.13503 883.429451 512 883.429451z"  ></path>' +
    '' +
    '<path d="M657.616472 382.038066 450.478831 589.175707l-84.095303-84.095303c-14.7264-14.7264-38.60218-14.7264-53.328579 0l0 0c-14.7264 14.7264-14.7264 38.60218 0 53.328579l110.759593 110.759593 0 0c14.7264 14.7264 38.60218 14.7264 53.328579 0l0 0 233.800907-233.800907c14.7264-14.7264 14.7264-38.60218 0-53.328579l0 0C696.218652 367.311667 672.342872 367.311667 657.616472 382.038066z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-tongzhi" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M512.037161 0C229.213654 0 0 229.238612 0 511.981417 0 794.762452 229.213654 1024 512.037161 1024 794.714146 1024 1024 794.761387 1024 511.981417 1024 229.273653 794.710965 0 512.037161 0L512.037161 0ZM552.264724 793.438304 552.264724 795.37621C552.264724 803.494168 550.725188 812.198277 547.731054 821.417383 544.696574 830.672602 540.089643 837.911334 533.908138 843.3226 527.690534 848.69776 519.828279 850.928742 510.428611 850.124909 500.920644 849.280724 490.021786 843.028466 477.591886 831.399977 455.725156 811.688578 432.576895 791.09477 408.073841 769.664205 383.647234 748.159317 360.901375 728.446853 339.908465 710.414261 315.443635 689.823635 290.980928 669.451756 266.551135 649.302867 261.83272 649.740356 257.117491 649.961224 252.362977 649.961224 248.52263 650.398712 244.427462 650.580291 240.184711 650.580291L229.214716 650.580291C217.623597 650.580291 208.188892 647.067641 200.94776 640.013672 193.632307 632.917228 189.977765 624.432926 189.977765 614.594746L189.977765 452.393798 190.596766 452.393798 189.977765 451.735442C189.977765 439.741676 193.745915 429.866331 201.241866 422.151882 208.73994 414.401329 218.100323 410.559501 229.217901 410.559501L265.897097 410.559501C305.352768 377.096948 341.193183 347.033425 373.372684 320.446448 387.088364 308.886985 400.580014 297.623783 413.887982 286.653654 427.161973 275.718569 439.15868 265.733851 449.87067 256.735607 460.584783 247.738425 469.655309 240.20343 476.966515 234.170975 484.206585 228.172499 488.704156 224.552601 490.459227 223.268807 503.295778 213.834136 513.713663 209.517654 521.687402 210.396878 529.622917 211.241061 535.803361 215.075456 540.33703 221.956341 544.836725 228.831917 547.942342 237.205785 549.662376 247.080068 551.41851 256.955413 552.259415 265.988699 552.259415 274.107719L552.259415 793.440427 552.264724 793.438304ZM640.065032 626.119167C634.690456 620.559242 631.981934 613.868431 631.981934 606.185837 631.981934 602.712476 632.677379 599.310261 633.919627 595.909107L633.261342 595.909107C635.455978 591.120095 637.979757 586.653891 641.011051 582.339533 644.007308 578.063403 646.862352 573.709756 649.639889 569.172407 652.458833 564.638243 654.833967 559.481827 656.769536 553.738198 658.707229 547.924488 659.622457 540.937415 659.622457 532.818395 659.622457 525.102883 658.708291 518.335618 656.769536 512.521907 654.795744 506.780402 652.455648 501.515676 649.639889 496.756396 646.859167 492.037468 644.009431 487.578697 641.011051 483.22505 637.976571 478.980775 635.636475 474.447673 633.91538 469.730869 632.671009 466.769327 631.977686 463.294905 631.977686 459.454139 631.977686 451.738627 634.647986 445.082857 640.060785 439.520808 645.400323 433.920532 651.944946 431.144817 659.659618 431.144817 665.692478 431.144817 670.593513 432.973349 674.468899 436.633597 678.309247 440.288537 681.966974 444.462729 685.402795 449.17741 694.434038 461.611849 701.565809 474.191764 706.976481 486.810968 712.31602 499.465214 715.022418 514.79005 715.022418 532.820519 715.022418 550.012114 712.241698 565.444198 706.64734 579.193227 701.088017 592.9104 693.994469 605.342716 685.399607 616.536898 681.961665 621.255825 678.344285 625.423646 674.465714 629.080709 670.589267 632.735648 665.689293 634.56949 659.656433 634.56949 651.941762 634.534448 645.392891 631.68334 640.0576 626.12023L640.065032 626.119167ZM825.687504 594.594518C820.128181 614.305919 812.268052 632.95864 802.175058 650.549496 792.08207 668.140353 780.160744 684.379457 766.485415 699.153183 752.735758 713.96408 737.741735 726.948564 721.431136 738.104518 716.274224 741.910241 710.279584 743.846025 703.439797 743.846025 694.881034 743.846025 687.458345 740.740069 681.241799 734.519658 675.024194 728.265277 671.880354 720.911858 671.880354 712.319249 671.880354 702.884577 675.573119 694.948195 682.850352 688.546215 683.287791 688.108728 683.728418 687.778488 684.094717 687.595841 684.532163 687.340995 684.97279 687.047919 685.410229 686.645473L686.02923 685.987116C698.062036 677.795892 709.211464 668.176456 719.527424 657.022626 729.840196 645.832692 738.799234 633.727431 746.552129 620.667552 754.230702 607.607674 760.26781 593.639901 764.578516 578.82476 768.85418 564.013866 770.978741 548.691154 770.978741 532.779106 770.978741 500.631142 762.822376 471.191995 746.552129 444.602894 730.281882 418.013794 709.872934 396.144683 685.409164 378.992377 676.412962 372.556413 671.879292 363.996719 671.879292 353.24215 671.879292 344.647414 675.025256 337.222854 681.240737 331.041737 687.494444 324.787352 694.881034 321.715377 703.438732 321.715377 710.719147 321.715377 717.115126 324.056789 722.748771 328.77147 738.621925 339.924238 753.357947 352.91191 767.107598 367.722803 780.823279 382.533697 792.634177 398.589097 802.505264 416.000498 812.379532 433.371548 820.09527 451.914897 825.687504 471.629484 831.246821 491.379112 834.062582 511.787096 834.062582 532.779106 834.062582 554.247894 831.243639 574.839581 825.687504 594.588147L825.687504 594.594518Z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-huoche" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M395.52 128l595.392 0C1009.216 128 1024 143.616 1024 162.944l0 453.824c0 19.264-14.784 34.88-33.088 34.88L395.52 651.648c-18.24 0-33.088-15.616-33.088-34.88L362.432 162.944C362.432 143.616 377.28 128 395.52 128z"  ></path>' +
    '' +
    '<path d="M261.184 267.648C261.184 267.648 320 250.176 320 320l0 256c0 0 5.248 74.56-56.768 74.56L161.92 650.56c0 0-97.152 7.616-97.152 101.44 0 0-2.048 39.296-35.136 39.296 0 0-29.632 0-29.632-32.704L0 540.352c0 0 6.912-34.88 27.584-65.472l70.272-137.472c0 0 16.512-69.824 66.176-69.824C182.592 269.824 261.184 267.648 261.184 267.648z"  ></path>' +
    '' +
    '<path d="M196.032 687.296c55.36 0 100.288 44.48 100.288 102.912C296.32 848.64 251.392 896 196.032 896c-55.36 0-97.536-47.36-97.536-105.792C98.56 731.776 140.672 687.296 196.032 687.296z"  ></path>' +
    '' +
    '<path d="M329.408 686.528l396.928 0c0 0 30.976 42.56 30.976 70.912l-394.88 0C362.432 757.44 329.408 732.352 329.408 686.528z"  ></path>' +
    '' +
    '<path d="M890.688 686.528c54.208 0 98.176 46.4 98.176 103.616 0 57.216-43.968 103.616-98.176 103.616s-98.176-46.4-98.176-103.616C792.448 732.928 836.416 686.528 890.688 686.528z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-fwylaji" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M187.278337 319.901891l645.177162 0 0 640.326691L187.278337 960.228581 187.278337 319.901891zM316.314179 127.803781 122.760928 127.803781l0 128.064724 774.213004 0L896.973932 127.803781 703.420681 127.803781 703.420681 63.771419l-387.106502 0L316.314179 127.803781z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-jian1" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M511.287267 453.138404c94.260827 0 188.520631-0.017396 282.780435 0.01228 24.76401 0.007163 44.11166 16.429181 48.031946 40.591487 4.425799 27.278273-16.875343 53.349045-44.491307 54.441936-1.387603 0.055259-2.780323 0.048095-4.169973 0.048095-188.241268 0.002047-376.482537 0.005117-564.723805-0.002047-22.916942-0.001023-41.695634-13.747095-47.470151-34.6778-8.375761-30.361495 14.057157-60.276828 45.596478-60.368926 54.080709-0.156566 108.161419-0.045025 162.243151-0.045025C429.817768 453.138404 470.552517 453.138404 511.287267 453.138404z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '</svg>'
  var script = function() {
    var scripts = document.getElementsByTagName('script')
    return scripts[scripts.length - 1]
  }()
  var shouldInjectCss = script.getAttribute("data-injectcss")

  /**
   * document ready
   */
  var ready = function(fn) {
    if (document.addEventListener) {
      if (~["complete", "loaded", "interactive"].indexOf(document.readyState)) {
        setTimeout(fn, 0)
      } else {
        var loadFn = function() {
          document.removeEventListener("DOMContentLoaded", loadFn, false)
          fn()
        }
        document.addEventListener("DOMContentLoaded", loadFn, false)
      }
    } else if (document.attachEvent) {
      IEContentLoaded(window, fn)
    }

    function IEContentLoaded(w, fn) {
      var d = w.document,
        done = false,
        // only fire once
        init = function() {
          if (!done) {
            done = true
            fn()
          }
        }
        // polling for no errors
      var polling = function() {
        try {
          // throws errors until after ondocumentready
          d.documentElement.doScroll('left')
        } catch (e) {
          setTimeout(polling, 50)
          return
        }
        // no errors, fire

        init()
      };

      polling()
        // trying to always fire before onload
      d.onreadystatechange = function() {
        if (d.readyState == 'complete') {
          d.onreadystatechange = null
          init()
        }
      }
    }
  }

  /**
   * Insert el before target
   *
   * @param {Element} el
   * @param {Element} target
   */

  var before = function(el, target) {
    target.parentNode.insertBefore(el, target)
  }

  /**
   * Prepend el to target
   *
   * @param {Element} el
   * @param {Element} target
   */

  var prepend = function(el, target) {
    if (target.firstChild) {
      before(el, target.firstChild)
    } else {
      target.appendChild(el)
    }
  }

  function appendSvg() {
    var div, svg

    div = document.createElement('div')
    div.innerHTML = svgSprite
    svgSprite = null
    svg = div.getElementsByTagName('svg')[0]
    if (svg) {
      svg.setAttribute('aria-hidden', 'true')
      svg.style.position = 'absolute'
      svg.style.width = 0
      svg.style.height = 0
      svg.style.overflow = 'hidden'
      prepend(svg, document.body)
    }
  }

  if (shouldInjectCss && !window.__iconfont__svg__cssinject__) {
    window.__iconfont__svg__cssinject__ = true
    try {
      document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
    } catch (e) {
      console && console.log(e)
    }
  }

  ready(appendSvg)


})(window)